package com.bite.forum.service;

import com.bite.forum.model.Message;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IMessageService {

    public void create(Message message);

    Message selectById (Long id);

    public Integer selectUnreadCount (Long receiveUserId);

    List<Message> selectByReceiveUserId (Long receiveUserId);

    void updateStateById (Long id, Byte state);

    @Transactional
    void reply (Long repliedId, Message message);
}
